package com.eova.interceptor;

import com.jfinal.aop.Interceptor;
import com.jfinal.aop.Invocation;

public class TestInterceptor implements Interceptor {
    @Override
    public void intercept(Invocation inv) {


        System.err.println("指定路径拦截~");
        long start = System.currentTimeMillis();
        inv.invoke();
        long end = System.currentTimeMillis();
        System.err.println("消耗时间：" + (end - start));
    }
}
